{extend name="main" /}

{block name="body"}
{include file="breadcrumb" /}
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="btn-box">
                <a href="{:url('add')}" data-width="400px" data-height="300px" class="layui-btn layui-btn-sm xn_open" title="添加用户组">
                    添加用户组
                </a>
            </div>
            <table class="layui-table">
                <tr>
                    <th>用户组</th>
                    <th>操作</th>
                </tr>

                <tbody>
                {foreach name="list" item="vo"}
                <tr>
                    <td>{$vo.title}</td>
                    <td>
                        <a href="{:url('group_rule',array('id'=>$vo['id']))}" class="layui-btn layui-btn-sm xn_open" title="分配权限">
                            分配权限
                        </a>
                        <a href="{:url('edit',array('id'=>$vo['id']))}" data-width="400px" data-height="300px" title="{$vo.title}" class="layui-btn layui-btn-normal layui-btn-sm xn_open">
                            修改
                        </a>
                        {if condition="$vo['id'] neq 1"}
                        <a href="{:url('delete',array('id'=>$vo['id']))}" title="确认要删除【{$vo.title}】吗？" class="layui-btn layui-btn-danger layui-btn-sm xn_delete">
                            删除
                        </a>
                        {/if}
                    </td>
                </tr>
                {/foreach}
                </tbody>
            </table>
        </div>
    </div>
</div>
{/block}